package com.atguigu.gulimall.member.feign.fallback;

import com.atguigu.common.exception.BizCodeEnum;
import com.atguigu.common.utils.R;
import com.atguigu.gulimall.member.feign.CouponClient;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class CouponClientFallBack implements CouponClient {
    @Override
    public R membercoupons() {
        log.info("CouponClientFallBack熔断方法正在执行。。。");
        return R.error(BizCodeEnum.TOO_MANY_REQUEST.getCode(),BizCodeEnum.TOO_MANY_REQUEST.getMsg());
    }
}
